package jsyf.oa.entity.importExcel;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by 92852 on 2018/4/17.
 */
@Entity
@Table(name = "T_SYS_USER_TEST", schema = "oa", catalog = "")
public class UserEntity  extends BaseEntity{
    private String name;
    private String sex;
    private String age;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("NAME", this.getName());
        obj.put("SEX", this.getSex());
        obj.put("AGE", this.getAge());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_SYS_USER_TEST";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("NAME", "name");
        obj.put("SEX", "sex");
        obj.put("AGE", "age");
        return obj;
    }
}
